package com.netease.b.a;

import com.netease.a.a.e;
import com.netease.a.a.g;
import com.netease.pris.atom.p;
import com.netease.pris.atom.u;
import com.netease.pris.protocol.d;
import com.netease.pris.protocol.h;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;

public class s extends com.netease.framework.b.b
  implements com.netease.pris.protocol.b
{
  com.netease.pris.protocol.b h;
  g i;

  public s(com.netease.framework.b.a parama, Object paramObject, int paramInt1, int paramInt2)
  {
    super(parama, paramObject, paramInt1, paramInt2);
  }

  public s(Vector paramVector, Object paramObject, int paramInt1, int paramInt2)
  {
    super(paramVector, paramObject, paramInt1, paramInt2);
  }

  public void a(g paramg)
  {
    this.i = paramg;
  }

  public void a(p paramp)
  {
    a(paramp, false);
    if (this.h != null)
      this.h.a(paramp);
    a(1, 0);
  }

  public void a(u paramu)
  {
    if (this.h != null)
      this.h.a(paramu);
  }

  public void a(com.netease.pris.protocol.b paramb)
  {
    this.h = paramb;
  }

  public void a(d paramd)
  {
    if (this.h != null)
      this.h.a(paramd);
  }

  public void b(d paramd)
  {
    a(paramd, false);
    if (this.h != null)
      this.h.b(paramd);
  }

  public void f()
  {
    Object localObject;
    if (d() != null)
    {
      if (!(d() instanceof InputStream))
        break label67;
      localObject = (InputStream)d();
    }
    while (true)
    {
      if ((localObject != null) && ((b()) || (a() == 400)));
      try
      {
        new h(new com.netease.pris.protocol.a(this)).a((InputStream)localObject);
        return;
        label67: if ((d() instanceof byte[]))
          localObject = new ByteArrayInputStream((byte[])(byte[])d());
      }
      catch (IOException localIOException)
      {
        while (true)
        {
          localIOException.printStackTrace();
          e.a(this.i);
          a(null);
          if (!b())
            continue;
          a(1, 10012);
        }
      }
      catch (Exception localException)
      {
        while (true)
        {
          localException.printStackTrace();
          e.a(this.i);
          a(null);
          if (!b())
            continue;
          a(1, 10012);
        }
        localObject = null;
      }
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.a.s
 * JD-Core Version:    0.6.0
 */